﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Templates_Downloads_Default : BaseSecureTemplatePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            AcmsContext.EnsureLoggedIn(this);
            DataBind();
        }
    }

    public override void DataBind()
    {
        string schoolName = User.Identity.User.GetCustomProperty("School Name");
        lblTitle.Text = string.Format("Welcome: {0}", schoolName);
        list.DataSource = AcmsContext.CurrentPost.Children;
        base.DataBind();

    }
}
